package com.example.mydesignmodule.adapter;

import android.util.Log;

/**
 * @author tgw
 * @date 2021/1/21
 */
public class AudioMediaPlay implements MediaPlayer {
    private MediaAdapter mediaAdapter;

    @Override
    public void play(Object type) {
        if (type instanceof MediaPlayerType) {
            mediaAdapter = new MediaAdapter((MediaPlayerType)type);
            mediaAdapter.play(type);
        } else {
            System.out.print("tgw播放其他类型 ");

        }

    }
}
